/* 全局变量 */
:root {
    --primary-color: #3b82f6;
    --background-color: #f3f4f6;
    --text-color: #1f2937;
    --border-color: #e5e7eb;
}

/* 全局样式重置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 主要内容区域样式 */
main {
    padding: 2rem 0;
}

.content {
    display: flex;
    gap: 2rem;
}

/* 筛选栏样式 */
.filters {
    width: 250px;
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h2 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.filter-options label {
    display: block;
    margin-bottom: 0.5rem;
}

/* 菜谱列表样式 */
.recipes {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* 菜谱卡片样式 */
.recipe-card {
    height: 290px;
    background-color: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s;
}

.recipe-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.recipe-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.recipe-card-content {
    padding: 1rem;
}

.recipe-card h3 {
    margin-bottom: 0.5rem;
}

.recipe-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #6b7280;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }

    .filters {
        width: 100%;
    }

    .recipes {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}